import { createWebHashHistory, createRouter } from "vue-router";
const routes = [
    { path: "/", component: () => import('@/views/Index.vue') },   //  推荐
    { path: "/rank", component: () => import('@/views/Rank.vue') },  //  排行
    { path: "/category", component: () => import('@/views/Category.vue') },  //  分类
    { path: "/detail/:id", component: () => import('@/views/Detail.vue'), props: true },//详情
    { path: "/show/:id", component: () => import('@/views/Show.vue'), props: true } //显示漫画内容
];
const router = createRouter({
    history: createWebHashHistory(),
    routes,
});
export default router;